<?php
/**
 * Copyright (c) 2018-2019.
 *  This file is part of the moonpie production
 *  (c) johnzhang <875010341@qq.com>
 *  This source file is subject to the MIT license that is bundled
 *  with this source code in the file LICENSE.
 */

namespace moonpie\plugin\wechat_account\service\user;


class CustomWechatUser implements WechatUserInterface
{
    private $openid;
    private $avatar;
    private $nickname;
    public function __construct($openid, $avatar = null, $nickname = null)
    {
        $this->openid = $openid;
        $this->avatar = $avatar;
        $this->nickname = $nickname;
    }

    public function getOpenid()
    {
        return $this->openid;
    }

    public function getAvatar()
    {
        return $this->avatar;
    }

    public function getNickname()
    {
        return $this->nickname;
    }
}